package org.qu.vo;

/**
 * IsnsEventInviteId entity. @author MyEclipse Persistence Tools
 */

public class IsnsEventInviteId implements java.io.Serializable {

	// Fields

	private Integer eventId;
	private Integer toUserId;

	// Constructors

	/** default constructor */
	public IsnsEventInviteId() {
	}

	/** full constructor */
	public IsnsEventInviteId(Integer eventId, Integer toUserId) {
		this.eventId = eventId;
		this.toUserId = toUserId;
	}

	// Property accessors

	public Integer getEventId() {
		return this.eventId;
	}

	public void setEventId(Integer eventId) {
		this.eventId = eventId;
	}

	public Integer getToUserId() {
		return this.toUserId;
	}

	public void setToUserId(Integer toUserId) {
		this.toUserId = toUserId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof IsnsEventInviteId))
			return false;
		IsnsEventInviteId castOther = (IsnsEventInviteId) other;

		return ((this.getEventId() == castOther.getEventId()) || (this
				.getEventId() != null
				&& castOther.getEventId() != null && this.getEventId().equals(
				castOther.getEventId())))
				&& ((this.getToUserId() == castOther.getToUserId()) || (this
						.getToUserId() != null
						&& castOther.getToUserId() != null && this
						.getToUserId().equals(castOther.getToUserId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getEventId() == null ? 0 : this.getEventId().hashCode());
		result = 37 * result
				+ (getToUserId() == null ? 0 : this.getToUserId().hashCode());
		return result;
	}

}